public class Test {

}

interface Person{
    public default void eat() {

    }


    public default void sleep(){

    }


}


class Student implements Person{
    public void eat(){
        System.out.println("学生去食堂吃饭。");
    }

    @Override
    public void sleep() {
        System.out.println("学生在宿舍睡觉。");
    }
}


class Teacher implements Person{
    public void eat(){
        System.out.println("老师去食堂吃饭。");
    }

    @Override
    public void sleep() {
        System.out.println("老师在学校公寓睡觉。");
    }
}